home *** CD-ROM | disk | FTP | other *** search
/ Master Visual Basic 3 / Master Visual Basic 3 (SAMS Publishing) (1994).ISO / mvprog / original / ch13 / howmuch.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-03-17  |  1.6 KB  |  53 lines

  1. VERSION 2.00
  2. Begin Form frmHowMuch 
  3.    BackColor       =   &H00800000&
  4.    Caption         =   "The HowMuch Program"
  5.    ClientHeight    =   4020
  6.    ClientLeft      =   1095
  7.    ClientTop       =   1485
  8.    ClientWidth     =   6990
  9.    Height          =   4425
  10.    Icon            =   HOWMUCH.FRX:0000
  11.    Left            =   1035
  12.    LinkTopic       =   "Form1"
  13.    Picture         =   HOWMUCH.FRX:0302
  14.    ScaleHeight     =   4020
  15.    ScaleWidth      =   6990
  16.    Top             =   1140
  17.    Width           =   7110
  18.    Begin CommandButton cmdHowMuch 
  19.       Caption         =   "&How Much?"
  20.       Height          =   495
  21.       Left            =   1440
  22.       TabIndex        =   1
  23.       Top             =   3360
  24.       Width           =   1815
  25.    End
  26.    Begin CommandButton cmdExit 
  27.       Caption         =   "E&xit"
  28.       Height          =   495
  29.       Left            =   240
  30.       TabIndex        =   0
  31.       Top             =   3360
  32.       Width           =   1215
  33.    End
  34.    Begin Label Label1 
  35.       Alignment       =   2  'Center
  36.       BorderStyle     =   1  'Fixed Single
  37.       Height          =   495
  38.       Left            =   3240
  39.       TabIndex        =   2
  40.       Top             =   3360
  41.       Width           =   3615
  42.    End
  43. Option Explicit
  44. Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags As Integer) As Long
  45. Sub cmdExit_Click ()
  46.     End
  47. End Sub
  48. Sub cmdHowMuch_Click ()
  49.     Dim FreeSpace
  50.     FreeSpace = GetFreeSpace(0)
  51.     Label1.Caption = "Currently Free Space on this system: " + FreeSpace
  52. End Sub
  53.